﻿using Repository.MODELs;
using System;
using Windows.UI.Xaml.Data;
namespace Antares.Converters
{
    public class ResultToColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {

            var model = value as SearchResultModel;

            if (model == null)
            {
                return "#3c1e22";
            }
            else
            {
                if (model.NavigationType is TaskModel)

                    return "#3c1e22";
                else if (model.NavigationType is UserModel)
                    return "#211e3c";
                //else if (model.NavigationType is ProjectInformationModel)
                //    return "#1e3c3c";
                else
                    return "#3c1e22";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
